package com.zlll.winner.business.service.bbs;

import com.alibaba.fastjson.JSONObject;
import com.zlll.winner.business.model.bbs.BbsUserComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlll.winner.business.vo.bbs.BbsUserCommentVo;

import javax.print.attribute.standard.JobSheets;
import java.util.List;

/**
 * <p>
 * 论坛用户评论表 服务类
 * </p>
 *
 * @author Walert
 * @since 2019-09-12
 */
public interface IBbsUserCommentService extends IService<BbsUserComment> {
    /**
     * 论坛帖子用户评论分页列表
     * @param params
     * @return
     */
    Object fetchCommentPage(JSONObject params);

    /**
     * 删除评论
     * @param params
     * @return
     */
    Object removeComment(JSONObject params) throws InterruptedException;

    /**
     * 新增或更新评论
     * @param params
     * @return
     */
    Object saveOrUpdateComment(BbsUserComment params);

    /**
     * 根据评论ID获取评论详情
     * @param commentId
     * @param userId
     * @return
     */
    BbsUserCommentVo selectByCommentId(Long commentId,Long userId);

    /**
     * 条件获取用户评论列表
     * @param params
     * @return
     */
    List<BbsUserCommentVo> getDetailsList(JSONObject params);
}
